﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Zero.UControl.Component.Common
{
    public class TabNavItem : INotifyPropertyChanged
    {
        public string NavName { get; set; }
        public FrameworkElement Element { get; set; }

        private bool isChecked = false;

        public bool IsChecked
        {
            get { return isChecked; }
            set 
            {
                isChecked = value;
                PropertyChanged?.Invoke(this,new PropertyChangedEventArgs(nameof(IsChecked)));
            }
        }

        public event PropertyChangedEventHandler? PropertyChanged;
    }
}
